package com.bub.pay.api.entity.vo.systemmanagement;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @Author chenchen
 * @Description 系统管理:账户信息:修改:接收对象
 * @Date 2019/9/4
 */
@Data
public class AccountInformationVO {
    /**当前密码*/
    private String currentPassword;
    /**新密码*/
    private String newPassword;
    /**重复密码*/
    private String repeatPassword;

    /**新邮箱*/
    private String newEmail;
    /**邮箱验证码*/
    private String emailVerificationCode;
    /**修改姓名*/
    private String nickName;
    /**修改类型*/
    @NotEmpty(message = "修改类型不能为空!")
    @Pattern(regexp = "^[1-3]{1}$" ,message = "修改类型只不正确!")
    private String typeUpdate;

    /**谷歌验证码*/
    @NotEmpty(message = "谷歌验证不能为空!")
    @Pattern(regexp = "^[0-9]{6}$" ,message = "谷歌验证码应为6位数字!")
    private String googleVerificationCode;




}
